find the quotient and remainder